package com.ruoyi.asms.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 installation_task
 * 
 * @author yfkj
 * @date 2022-04-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class InstallationTask
{
    private static final long serialVersionUID = 1L;
    /** 主键 */
    @TableField(exist = true)
    @TableId(type= IdType.AUTO)
    @ApiModelProperty(value =  "${comment}")
    private Long installationTaskId;
    /** 任务内容 */
    @Excel(name = "任务内容")
    @TableField(exist = true)
    @ApiModelProperty(value =  "任务内容")
    private String content;
    /** 资产类型ID */
    @Excel(name = "资产类型ID")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产类型ID")
    private Long assetTypeId;
    /** 资产类型名字 */
    @Excel(name = "资产类型名字")
    @TableField(exist = true)
    @ApiModelProperty(value =  "资产类型名字")
    private String assetTypeName;
    /** 任务名称 */
    @Excel(name = "任务名称")
    @TableField(exist = true)
    @ApiModelProperty(value =  "任务名称")
    public String taskTheme;
    /** 任务开始时间 */
    @Excel(name = "任务开始时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "任务开始时间")
    private Long startTime;
    /** 任务结束时间 */
    @Excel(name = "任务结束时间")
    @TableField(exist = true)
    @ApiModelProperty(value =  "任务结束时间")
    private Long endTime;
    /** 0 任务无效  1任务有效 */
    @Excel(name = "0 任务无效  1任务有效")
    @TableField(exist = true)
    @ApiModelProperty(value =  "0 任务无效  1任务有效")
    private Integer isDelete;

    /** 创建者 */
    private String createBy;

    /**
     * 创建者部门
     */
    private Long createDeptId;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Long createTime;
    public static final String INSTALLATION_TASK_ID="installation_task_id";
    public static final String CONTENT="content";
    public static final String ASSET_TYPE_ID="asset_type_id";
    public static final String ASSET_TYPE_NAME="asset_type_name";
    public static final String START_TIME="start_time";
    public static final String END_TIME="end_time";
    public static final String IS_DELETE="is_delete";
    public static final String TASK_THEME = "task_theme";
    public static final String CREATE_DEPT_ID = "create_dept_id";

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("installationTaskId", getInstallationTaskId())
            .append("content", getContent())
            .append("assetTypeId", getAssetTypeId())
            .append("assetTypeName", getAssetTypeName())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("isDelete", getIsDelete())
            .toString();
    }
}
